-- GENERATED SPELL FOR [Salt Flats Vulture] --


function spell0_4158(pUnit, Event) --@Execute,n/a--
pUnit:FullCastSpellOnTarget(7160,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4158', 0, 1)
end

function Sorts_4158(pUnit, Event)
local choix_sorts_4158 = math.random(0, 0)
if choix_sorts_4158 == 0 then
pUnit:RegisterEvent('spell0_4158', 1, 1)
end
end

function mob4158_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4158', math.random(1500, 3000), 1)
end

function mob4158_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4158_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4158_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4158, 1, 'mob4158_Action')
RegisterUnitEvent(4158, 2, 'mob4158_Leave')
RegisterUnitEvent(4158, 3, 'mob4158_Kill')
RegisterUnitEvent(4158, 4, 'mob4158_Die')
